package com.ruoyi.mx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.mx.domain.MxActivity;
import com.ruoyi.mx.dto.ActivityDetail;

import java.util.ArrayList;

/**
 * 美秀活动Mapper接口
 *
 * @author ruoyi
 * @date 2021-09-27
 */
public interface MxActivityMapper extends BaseMapper<MxActivity> {

    ArrayList<MxActivity> getSwiperActivity();

    ArrayList<MxActivity> getActivityList(int i, Integer pageSize);

    ActivityDetail getDetailById(String id);

    ArrayList<MxActivity> getHotActivityList(int i, Integer pageSize);

    void insertCollections(String aid, String uid);

    Integer delCollections(String aid, String uid);

    void insertAZan(String aid, String uid);

    Integer delZan(String aid, String uid);

    void insertACai(String aid, String uid);

    Integer delCai(String aid, String uid);

    Integer countCollections(String aid, String uid);

    Integer countActivityZan(String aid, String uid);

    Integer countActivityCai(String aid, String id);
}
